#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Autor: Josep Torrens Amer
# E-mail: toram74@gmail.com
#
# GNU GPL License, (C) 2007.
#
# Module: Singleton
#
# Description: Modul base de classes Singleton 
#
# Version: 0.0.1
#
# Created: 27-08-2007
#
# Modified:
#

class Singleton (object):
    def __new__(cls, *p, **k):
        if not '_the_instance' in cls.__dict__:
            cls._the_instance = object.__new__(cls)
        return cls._the_instance
